const {defineConfig} = require('@vue/cli-service')
const packageName = require("./package.json").name;

module.exports = defineConfig({
  outputDir: `../dist/${packageName}`,
  publicPath: process.env.VUE_APP_BASE_URL,
  transpileDependencies: true,
  chainWebpack: config => {
    config.plugin('html').tap(args => {
      args[0].title = process.env.VUE_APP_PAGE_TITLE
      return args
    })
  }
})
